<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>
        <g:layoutTitle default="Some Title"/>
    </title>
    <link rel="icon" href="${createLinkTo(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
    <link rel="shortcut icon" href="${createLinkTo(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>
    <!-- <link rel="icon" href="favicon.ico" type="image/x-icon"> -->
    <!-- Google font-->
    <!-- Required Fremwork -->
    <asset:stylesheet src="mash/bower_components/font-awesome/css/font-awesome.min.css"/>
    <asset:stylesheet src="mash/bower_components/bootstrap/dist/css/bootstrap.min.css"/>
    <!-- themify-icons line icon -->
    <asset:stylesheet src="mash/assets/icon/themify-icons/themify-icons.css"/>

    <!-- ico font -->
    <asset:stylesheet src="mash/assets/icon/icofont/css/icofont.css"/>
    <!-- flag icon framework css -->
    <asset:stylesheet src="mash/assets/pages/flag-icon/flag-icon.min.css"/>
    <asset:stylesheet src="mash/bower_components/sweetalert/sweet-alert.css"/>
    <!-- Menu-Search css -->
    <asset:stylesheet src="mash/assets/pages/menu-search/css/component.css"/>
    <asset:stylesheet src="mash/assets/pages/flag-icon/flag-icon.min.css"/>
    <asset:stylesheet src="mash/bower_components/select2/select2.min.css"/>
    %{--<asset:stylesheet src="mash/bower_components/select2/select2-bootstrap.css"/>--}%
    <asset:stylesheet src="mash/bower_components/datatables.net-bs4/css/dataTables.bootstrap4.min.css"/>
    <asset:stylesheet src="mash/assets/pages/data-table/css/buttons.dataTables.min.css"/>
    <asset:stylesheet src="mash/bower_components/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css"/>
    <!-- Summernote css -->
    <asset:stylesheet src="mash/bower_components/summernote/css/summernote.css"/>
    <!-- Style.css -->
    <asset:stylesheet src="mash/assets/css/style.css"/>
    <!--color css-->
    <asset:stylesheet src="mash/assets/css/color/color-1.css" id="color"/>
    <asset:stylesheet src="mash/assets/css/linearicons.css"/>
    <asset:stylesheet src="mash/assets/css/simple-line-icons.css"/>
    <asset:stylesheet src="mash/assets/css/ionicons.css"/>
    <asset:stylesheet src="mash/assets/css/jquery.mCustomScrollbar.css"/>
    <asset:stylesheet src="mash/bower_components/toastr/toastr.min.css"/>
    <asset:stylesheet src="homer/vendor/datetimepicker/bootstrap-datetimepicker.min.css"/>
    <asset:javascript src="mash/bower_components/jquery/dist/jquery.min.js"/>
    <asset:javascript src="echarts.min.js"/>
    <g:layoutHead/>
    <style type="text/css">
    html {
        height: 100%;
    }

    .hide {
        display: none;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        background-color: transparent;
        color: #292b2c;
        padding: .5rem .75rem;
        padding: .5rem .75rem;
        line-height: 1.25;
        border: 1px solid rgba(0, 0, 0, .15);
        font-size: 14px;
        border-radius: 2px;
    }

    .select2-container--default .select2-selection--single {
        border: none;
    }


    .pagination {
        margin: 2px 0;
        white-space: nowrap;
        text-align: center;
    }

    .pagination .prevLink,
    .currentStep.active1 {
        margin-left: 0px;
        border-bottom-left-radius: .25rem;
        border-top-left-radius: .25rem;
    }

    .pagination .nextLink,
    .currentStep.active2 {
        border-bottom-right-radius: .25rem;
        border-top-right-radius: .25rem;
    }

    .pagination a,
    .pagination .currentStep {
        position: relative;
        /*display: block;*/
        padding: .5rem .75rem;
        margin-left: -1px;
        line-height: 1.25;
        color: #222;
        background-color: #fff;
        border: 1px solid #ddd;
    }

    .pagination a:hover,
    .pagination a:focus,
    .pagination .currentStep {
        z-index: 2;
        color: #fff;
        background-color: #0073aa;
        border-color: #0073aa;
    }

    .breadcrumb-title li:last-child {
        color: #7e7e7e;
    }

    label.is-required:before {
        content: "*";
        color: #e74c3c;
        margin-right: 4px;
        padding-top: 7px;
    }

    .errors {
        display: none;
    }

    .errors li {
        padding: 5px 0;
    }

    .form-group > div[class*="col-md-"] input.btn-info,
    .form-group > div[class*="col-md-"] button.btn-info {
        float: right;
    }

    .note-editor {
        border: none;
    }

    .table > thead > tr > th > a,
    table td a {
        color: #292b2c;
    }

    .m-0 {
        margin: 0 !important;
    }

    /*.form-control-2 {
        font-size: 14px;
        display: inline-block;
        padding: .5rem .75rem;
        line-height: 1.25;
        height: calc(2.25rem + 2px);
        color: #464a4c;
        background-color: #fff;
        background-image: none;
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
        !*border: 2px solid rgba(0, 0, 0, .15);*!
        border-radius: 2px;
        -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    }*/

    .form-group span.cont,
    p.form-control-static {
        display: block;
        padding-top: .5rem;
        padding-bottom: .5rem;
        margin-bottom: 0;
        line-height: 1.25;
        border: solid transparent;
        border-width: 1px 0;
        font-size: inherit;
        line-height: 1.25 !important;
    }

    select.form-control-2:not([size]):not([multiple]) {
        height: calc(2.25rem + 2px);
    }
    .input-group {
        margin-bottom: 0;
    }

    .card-block .form-group:last-child {
        margin-bottom: 0;
    }

    .main-body .page-wrapper {
        padding: 70px 20px 20px;
    }
    .hidden,.hide{
        display: none !important;
    }
    .page-header {
        margin-bottom: 0;
        position: fixed;
        z-index: 100;
        top: 56px;
        left: 235px;
        right: 0;
        background-color: #fff;
        z-index: 100;
        padding: 12px 30px;
        border-bottom: 1px solid #eaeaea;
        border-left: 1px solid #eaeaea;
    }

    .card .card-header .card-header-right a {
        color: #292b2c;
        margin: 0 20px;
    }

    .card .card-header .card-header-right button i, .card .card-header .card-header-right a i {
        margin-right: 2px;
        margin-left: 0;
    }

    .card .card-header .card-header-right a.btn {
        color: #fff;
    }

    .btn i {
        margin-right: 2px;
    }

    nav .header-navbar {
        position: fixed;
        z-index: 1000;
    }

    button.deleteBtn {
        border: none;
        outline: none;
        background-color: transparent;
    }

    .inline {
        display: inline-block;
    }

    .tab-header {
        background-color: #fff;
    }

    .pcoded-micon i.icofont {
        font-size: 16px;
    }

    .control-label {
        font-size: 14px;
    }

    .control-label {
        padding-top: calc(.5rem - 1px * 2);
        padding-bottom: calc(.5rem - 1px * 2);
        margin-bottom: 0;
    }

    .pcoded-item li.pcoded-hasmenu a:hover {
        background-color: #dadada !important;
        color: #000;
    }

    .CodeMirror {
        border: 2px solid rgba(0, 0, 0, .15);
    }


    </style>
</head>

<body class="">

<!-- <g:set var="currentUser" value="${com.next.User.findByUsername(sec.loggedInUserInfo(field: 'username'))}"/> -->

<div class="theme-loader">
    <div class="ball-scale">
        <div></div>
    </div>
</div>

<div id="pcoded" class="pcoded">
    <div class="pcoded-overlay-box"></div>

    <div class="pcoded-container navbar-wrapper">
        <nav class="navbar header-navbar pcoded-header" header-theme="theme4" pcoded-header-position="fixed">
            <div class="navbar-wrapper">
                <div class="navbar-logo" data-navbar-theme="themelight1">

                    <a href="javascript:;">
                        <asset:image class="" src="logo.png" height="24" alt="logo"/>
                    </a>

                </div>

                <div class="navbar-container container-fluid">
                    <div>
                        <ul class="nav-left">
                            <li>
                                <div class="sidebar_toggle"><a href="javascript:void(0)"><i class="ti-menu"></i></a>
                                </div>
                            </li>
                        </ul>
                        <ul class="nav-right">
                            <li class="user-profile header-notification">
                                <a href="#!">
                                    <g:if test="${com.next.User.findByUsername(sec.loggedInUserInfo(field: 'username'))?.avatarUrl}">
                                        <img src="${com.next.User.findByUsername(sec.loggedInUserInfo(field: 'username'))?.avatarUrl}"
                                             class="img-circle m-b" alt="User-Profile-Image" width="40" height="40"/>
                                    </g:if>
                                    <g:else>
                                        <asset:image src="user.png" alt="User-Profile-Image"/>
                                    </g:else>

                                    <span><sec:loggedInUserInfo field="username"/></span>
                                    <i class="ti-angle-down"></i>
                                </a>
                                <ul class="show-notification profile-notification">
                                    <li>
                                        <g:link controller="user" action="changePassword">
                                            <i class="ti-settings"></i>修改口令
                                        </g:link>
                                    </li>
                                    <li>
                                        <g:link controller="user" action="changeAvatar">
                                            <i class="icofont icofont-user-alt-7"></i>更换头像
                                        </g:link>
                                    </li>
                                    <li>
                                        <g:link controller="logoff">
                                            <i class="icofont icofont-ui-power"></i>退出</g:link>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <!-- search -->
                        <div id="morphsearch" class="morphsearch">
                            <form class="morphsearch-form">
                                <input class="morphsearch-input" type="search" placeholder="Search..."/>
                                <button class="morphsearch-submit" type="submit">Search</button>
                            </form>

                            <div class="morphsearch-content">
                                <div class="dummy-column">
                                    <h2>People</h2>
                                    <a class="dummy-media-object" href="#!">
                                        <asset:image class="round" src="avatar-1.png" alt="Sara Soueidan"/>
                                        <h3>Sara Soueidan</h3>
                                    </a>
                                </div>

                                <div class="dummy-column">
                                    <h2>Popular</h2>
                                    <a class="dummy-media-object" href="#!">
                                        <asset:image src="avatar-1.png" alt="PagePreloadingEffect"/>
                                        <h3>Page Preloading Effect</h3>
                                    </a>
                                    <a class="dummy-media-object" href="#!">
                                        <asset:image src="avatar-1.png" alt="DraggableDualViewSlideshow"/>
                                        <h3>Draggable Dual-View Slideshow</h3>
                                    </a>
                                </div>

                                <div class="dummy-column">
                                    <h2>Recent</h2>
                                    <a class="dummy-media-object" href="#!">
                                        <asset:image src="avatar-1.png" alt="TooltipStylesInspiration"/>
                                        <h3>Tooltip Styles Inspiration</h3>
                                    </a>
                                    <a class="dummy-media-object" href="#!">
                                        <asset:image src="avatar-1.png" alt="NotificationStyles"/>
                                        <h3>Notification Styles Inspiration</h3>
                                    </a>
                                </div>
                            </div>
                            <!-- /morphsearch-content -->
                            <span class="morphsearch-close"><i class="icofont icofont-search-alt-1"></i></span>
                        </div>
                        <!-- search end -->
                    </div>
                </div>
            </div>
        </nav>
        <!-- Sidebar inner chat end-->
        <div class="pcoded-main-container">
            <div class="pcoded-wrapper">
                <nav class="pcoded-navbar" pcoded-header-position="fixed" data-navbar-theme="themelight1">
                    <div class="sidebar_toggle"><a href="#"><i class="icon-close icons"></i></a></div>

                    <div class="pcoded-inner-navbar main-menu">
                        <sec:ifAnyGranted roles="ROLE_ADMINISTRATOR, ROLE_COMPANY_ADMINISTRATOR, ROLE_COMPANY_USER">
                            <ul class="pcoded-item pcoded-left-item">
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)">
                                        <span class="pcoded-micon"><i class="icofont icofont-calendar"></i></span>
                                        <span class="pcoded-mtext" data-i18n="nav.dash.main">日历</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="activity" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我的日历</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="activityTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队的日历</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="activityTeam" action="myTeamTaskList">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队的任务</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)">
                                        <span class="pcoded-micon"><i class="icofont icofont-info-square"></i></span>
                                        <span class="pcoded-mtext" data-i18n="nav.page_layout.main">线索</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="lead" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我的线索</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="leadTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队的线索</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.navigate.main">
                                        <span class="pcoded-micon"><i class="icofont icofont-search-alt-1"></i></span>
                                        <span class="pcoded-mtext">商机</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="opportunity" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我的商机</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="opportunityTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队的商机</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-ui-user"></i></span>
                                        <span class="pcoded-mtext">客户</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="account" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我的客户</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="accountTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队的客户</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-contacts"></i></span>
                                        <span class="pcoded-mtext">联系人</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="contact" action="index">
                                                <span class="pcoded-micon"><i class="ti-user"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我的联系人</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="contactTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队的联系人</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-ui-rate-blank"></i></span>
                                        <span class="pcoded-mtext">市场活动</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="campaign" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我的市场活动</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="campaignTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">我参与的市场活动</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-listening"></i></span>
                                        <span class="pcoded-mtext">反馈</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="issue" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">反馈</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="issueTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队反馈</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-money"></i></span>
                                        <span class="pcoded-mtext">资产</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="asset" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">资产</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="assetTeam" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">团队资产</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class=" ">
                                    <g:link controller="contract" action="index" data-i18n="nav.widget.main">
                                        <span class="pcoded-micon"><i class="icofont icofont-file-text"></i></span>
                                        <span class="pcoded-mtext">合同</span>
                                        <span class="pcoded-mcaret"></span>
                                    </g:link>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-ui-social-link"></i></span>
                                        <span class="pcoded-mtext">产品</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="productLine" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">产品线</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="product" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">产品</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </sec:ifAnyGranted>
                        <sec:ifAnyGranted roles="ROLE_ADMINISTRATOR, ROLE_COMPANY_ADMINISTRATOR">
                            <ul class="pcoded-item pcoded-left-item">
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)">
                                        <span class="pcoded-micon"><i class="icofont icofont-company"></i></span>
                                        <span class="pcoded-mtext" data-i18n="nav.dash.main">人事</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="company" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">公司</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="department" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">部门</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="position" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">岗位</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="job" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">职位</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="employee" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">员工</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)">
                                        <span class="pcoded-micon"><i class="icofont icofont-social-google-map"></i>
                                        </span>
                                        <span class="pcoded-mtext" data-i18n="nav.page_layout.main">区域</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="territory" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">区域</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="country" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">国家</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="province" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">省份</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="city" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">城市</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="district" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">区市</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="address" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">单位</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>

                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.navigate.main">
                                        <span class="pcoded-micon"><i class="icofont icofont-database"></i></span>
                                        <span class="pcoded-mtext">字典</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="dataDictionary" action="opportunity">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">商机</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="account">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">客户</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="contact">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">联系人</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="activity">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">活动</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="issue">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">反馈</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="contract">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">合同</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="campaign">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">市场活动</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="dataDictionary" action="other">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">其它</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)" data-i18n="nav.widget.main">

                                        <span class="pcoded-micon"><i class="icofont icofont-key"></i></span>
                                        <span class="pcoded-mtext">权限</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="role" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">角色</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="securityProfile" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">安全配置</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="menu" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">菜单</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="user" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">用户</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>

                                        <li>
                                            <g:link controller="loginHistory" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">登录明细</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </sec:ifAnyGranted>
                        <sec:ifAnyGranted roles="ROLE_ADMINISTRATOR">
                            <ul class="pcoded-item pcoded-left-item">
                                <li class="pcoded-hasmenu">
                                    <a href="javascript:void(0)">
                                        <span class="pcoded-micon"><i class="icofont icofont-settings-alt"></i></span>
                                        <span class="pcoded-mtext" data-i18n="nav.dash.main">系统</span>
                                        <span class="pcoded-mcaret"></span>
                                    </a>
                                    <ul class="pcoded-submenu">
                                        <li>
                                            <g:link controller="productOpportunityStage" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">产品阶段</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="messageTemplate" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">消息推送</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="message" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">消息</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="document" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">帮助文档</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="timingTask" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">定时任务</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="flexFieldCategory" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">弹性域</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="Workflow" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">工作流</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                        <li>
                                            <g:link controller="component" action="index">
                                                <span class="pcoded-micon"><i class="ti-angle-right"></i></span>
                                                <span class="pcoded-mtext" data-i18n="nav.dash.default">组件</span>
                                                <span class="pcoded-mcaret"></span>
                                            </g:link>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </sec:ifAnyGranted>
                    </div>
                </nav>

                <div class="pcoded-content">
                    <div class="pcoded-inner-content">
                        <g:layoutBody/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Required Jquery -->
<asset:javascript src="mash/bower_components/jquery-ui/jquery-ui.min.js"/>
<asset:javascript src="mash/bower_components/tether/dist/js/tether.min.js"/>
<asset:javascript src="mash/bower_components/bootstrap/dist/js/bootstrap.min.js"/>
<asset:javascript src="mash/bower_components/select2/select2.min.js"/>-
<asset:javascript src="mash/bower_components/select2/zh-CN.js"/>
%{--
    <asset:javascript src="mash/bower_components/jquery-validation/dist/jquery.validate.js"/>--}%

<!-- jquery slimscroll js -->
<asset:javascript src="mash/bower_components/jquery-slimscroll/jquery.slimscroll.js"/>
<!-- modernizr js -->
%{--
<asset:javascript src="mash/bower_components/modernizr/modernizr.js"/>--}% %{--
    <asset:javascript src="mash/bower_components/modernizr/feature-detects/css-scrollbars.js"/>--}%
<!-- classie js -->
%{--
<asset:javascript src="mash/bower_components/classie/classie.js"/>--}%
<!-- i18next.min.js -->
<asset:javascript src="mash/bower_components/i18next/i18next.min.js"/>
<asset:javascript src="mash/bower_components/i18next-xhr-backend/i18nextXHRBackend.min.js"/>
%{--<asset:javascript src="mash/bower_components/i18next-browser-languagedetector/i18nextBrowserLanguageDetector.min.js"/>--}%
%{--<asset:javascript src="mash/bower_components/jquery-i18next/jquery-i18next.min.js"/>--}%
<!-- Custom js -->
<asset:javascript src="mash/assets/js/script.js"/>
<asset:javascript src="mash/assets/js/pcoded.min.js"/>
<asset:javascript src="mash/assets/js/demo-12.js"/>

%{--<asset:javascript src="mashassets/js/pcoded.min.js"/>--}%
%{--<asset:javascript src="mash/assets/js/jquery.mousewheel.min.js"/>--}%

<asset:javascript src="mash/assets/js/menu/menu-sidebar-fixed.js"/>
%{--<asset:javascript src="mash/assets/js/menu/menu-header-fixed.js"/>--}%
<asset:javascript src="mash/assets/js/jquery.mCustomScrollbar.concat.min.js"/>
%{--<asset:javascript src="mash/assets/js/jquery.mousewheel.min.js"/>--}%

<asset:javascript src="mash/bower_components/sweetalert/sweet-alert.min.js"/>
<asset:javascript src="mash/bower_components/toastr/toastr.min.js"/>
<asset:javascript src="mash/bower_components/summernote/js/summernote.js"/>
<asset:javascript src="mash/bower_components/summernote/js/summernote-ko-KR.js"/>
<asset:javascript src="mash/bower_components/moment/min/moment-with-locales.js"/>
<asset:javascript src="mash/bower_components/moment/local/zh-cn.js"/>
<asset:javascript src="homer/vendor/datetimepicker/bootstrap-datetimepicker.min.js"/>
<asset:javascript src="homer/vendor/datetimepicker/bootstrap-datetimepicker.zh-CN.js"/>

<script>
    $(function () {
        // moment.locale('zh-cn');
        /*  $(".datetimepicker .prev span").addClass("fa fa-arrow-left")
         $(".datetimepicker .next").addClass("fa fa-arrow-right")*/
        $('.form_date').datetimepicker({
            minView: "month",
            //选择日期后，不会再跳转去选择时分秒
            format: "yyyy-mm-dd",
            //选择日期后，文本框显示的日期格式
            language: 'zh-CN',
            //汉化
            autoclose: true //选择日期后自动关闭
        }).on('changeDate', function (ev) {
            var self = $(ev.currentTarget);
            // var valctrl = $("#"+self.attr("valctrl"));
            var valctrl_d = $("#" + self.attr("valctrl") + "_day");
            var valctrl_m = $("#" + self.attr("valctrl") + "_month");
            var valctrl_y = $("#" + self.attr("valctrl") + "_year");
            var mdate = moment(ev.date.valueOf());
            // valctrl.val(mdate.format("YYYY-MM-DD"));
            valctrl_d.val(mdate.format("D"));
            valctrl_m.val(mdate.format("M"));
            valctrl_y.val(mdate.format("YYYY"));
        });
        $('.form_date').each(function (index) {
            var self = $(this);
            var mdate = moment();
            var tdatetime = self.val();
            if (tdatetime != "") {
                mdate = moment(tdatetime);
            }
            var valctrl_d = $("#" + self.attr("valctrl") + "_day");
            var valctrl_m = $("#" + self.attr("valctrl") + "_month");
            var valctrl_y = $("#" + self.attr("valctrl") + "_year");
            valctrl_d.val(mdate.format("D"));
            valctrl_m.val(mdate.format("M"));
            valctrl_y.val(mdate.format("YYYY"));
            self.val(mdate.format('YYYY-MM-DD'));
        });

        $('.form_datetime').datetimepicker({
            minView: "day",
            //选择日期后，不会再跳转去选择时分秒
            format: "yyyy-mm-dd hh:00",
            //选择日期后，文本框显示的日期格式
            language: 'zh-CN',
            //汉化
            autoclose: true //选择日期后自动关闭
        }).on('changeDate', function (ev) {
            var self = $(ev.currentTarget);
            // var valctrl = $("#"+self.attr("valctrl"));
            var valctrl_mm = $("#" + self.attr("valctrl") + "_minute");
            var valctrl_h = $("#" + self.attr("valctrl") + "_hour");
            var valctrl_d = $("#" + self.attr("valctrl") + "_day");
            var valctrl_m = $("#" + self.attr("valctrl") + "_month");
            var valctrl_y = $("#" + self.attr("valctrl") + "_year");
            var mdate = moment(ev.date.valueOf());
            // valctrl.val(mdate.format("YYYY-MM-DD"));
            valctrl_mm.val(mdate.format("m"));
            valctrl_h.val(mdate.format("HH"));
            valctrl_d.val(mdate.format("D"));
            valctrl_m.val(mdate.format("M"));
            valctrl_y.val(mdate.format("YYYY"));
        });
        $('.form_datetime').each(function (index) {
            var self = $(this);
            var mdate = moment();
            debugger
            var tdatetime = self.val();
            if (tdatetime != "") {
                mdate = moment(tdatetime);
            }
            var valctrl_mm = $("#" + self.attr("valctrl") + "_minute");
            var valctrl_h = $("#" + self.attr("valctrl") + "_hour");
            var valctrl_d = $("#" + self.attr("valctrl") + "_day");
            var valctrl_m = $("#" + self.attr("valctrl") + "_month");
            var valctrl_y = $("#" + self.attr("valctrl") + "_year");
            valctrl_mm.val(mdate.format("m"));
            valctrl_h.val(mdate.format("HH"));
            valctrl_d.val(mdate.format("D"));
            valctrl_m.val(mdate.format("M"));
            valctrl_y.val(mdate.format("YYYY"));
            self.val(mdate.format('YYYY-MM-DD HH:00'));
        });


        $("select").select2();

        $("#pcoded").pcodedmenu({
            themelayout: 'vertical',
            verticalMenuplacement: 'left', // value should be left/right
            verticalMenulayout: 'wide', // value should be wide/box/widebox
            MenuTrigger: 'click',
            SubMenuTrigger: 'click',
            activeMenuClass: 'active',
            ThemeBackgroundPattern: 'pattern2',
            HeaderBackground: 'theme1',
            LHeaderBackground: 'theme5',
            NavbarBackground: 'themelight1',
            ActiveItemBackground: 'theme5',
            SubItemBackground: 'theme2',
            ActiveItemStyle: 'style0',
            FixedHeaderPosition: true,
            FixedNavbarPosition: true,
            ItemBorder: false,
            DropDownIconStyle: 'style2'

        });

        toastr.options = {
            "closeButton": true,
            "debug": false,
            "progressBar": false,
            "positionClass": "toast-top-center",
            "onclick": null,
            "showDuration": "300",
            "hideDuration": "1000",
            "timeOut": "5000",
            "extendedTimeOut": "1000",
            "showEasing": "swing",
            "hideEasing": "linear",
            "showMethod": "fadeIn",
            "hideMethod": "fadeOut"
        }
        $.each($(".errors li"), function (i, obj) {
            toastr.warning($(obj).text().trim());
        });
        var currentStep = $(".pagination .currentStep");
        if (currentStep.text().trim() == "1") {
            currentStep.addClass('active1');
        }
        if (currentStep.text().trim() == $(".pagination").children().length - 1) {
            currentStep.addClass('active2');
        }
//        $(".datePicker select").addClass("form-control-2");
        $('[data-toggle="tooltip"]').tooltip();
        $(document).delegate(".deleteBtn", "click",
            function () {
                var currentForm = $(this).parent("form");
                swal({
                        title: "您确认删除该数据吗?",
                        type: "warning",
                        showCancelButton: true,
                        confirmButtonColor: "#DD6B55",
                        cancelButtonText: "取消",
                        confirmButtonText: "删除",
                        closeOnConfirm: false,
                        closeOnCancel: true

                    },
                    function (isConfirm) {
                        if (isConfirm) {
                            currentForm.submit();

                        }
                    });

            });
    })
</script>
</body>

</html>
